package com.ztjava.score.tool;

import com.jfinal.aop.Duang;
import com.ztjava.score.model.ScoreInfo;
import com.ztjava.score.service.ScoreService;

public class ScoreViewTool {
	private static ScoreService scoreService = Duang.duang(ScoreService.class);
	public static String score_info(Integer user_id,String code){
		ScoreInfo scoreInfo = scoreService.getUserScoreInfo(user_id, code);
		return scoreInfo.getInt("score")+"";
	}
}
